/**
 * 作者: wgx
 * 日期: 2025-03-29 10:25:13
 * 备注: 餐厅客人配置表
 */
package com.motu.monstercity.server.game.commondata.restaurant;

import io.vertx.core.json.JsonObject;

public class RestaurantGuestModel {
    protected int id; // id
    protected int unlockValue; // 解锁需求 (解锁需求为需达到美食城的人气值的数量（p.s.点击客人解锁非扣除，是达到即可解锁）)
    protected int skillValueAdd; // 对熟练度的加成 (为百分比,放大1W倍，填写2000为20％)
    protected int weight; // 出现的权重 (接待客人时随机出现的概率)

    public RestaurantGuestModel() {
    }

    public RestaurantGuestModel(JsonObject obj) {
        id = obj.containsKey("id") ? obj.getInteger("id") : 0;
        unlockValue = obj.containsKey("unlock_value") ? obj.getInteger("unlock_value") : 0;
        skillValueAdd = obj.containsKey("skill_value_add") ? obj.getInteger("skill_value_add") : 0;
        weight = obj.containsKey("weight") ? obj.getInteger("weight") : 0;
    }

    public int getId() {
        return id;
    }

    public int getUnlockValue() {
        return unlockValue;
    }

    public int getSkillValueAdd() {
        return skillValueAdd;
    }

    public int getWeight() {
        return weight;
    }

}
